lib/pull: Journal fetch results
authorColin Walters <walters@verbum.org>
Thu, 27 Jul 2017 19:49:05 +0000 (15:49 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 28 Jul 2017 13:50:22 +0000 (13:50 +0000)
commitd7f953aa3a9fc61d7d22fd2d05ff92583cb7b21d
treedc1795353048b16ef4e76755481814658c642528
parentd24b259cc588ac8db991d5d60b0ae39000219f9a
lib/pull: Journal fetch results

This is a continuation of addition of journaling to libostree; see
e.g. <https://github.com/ostreedev/ostree/pull/708>.

I wanted more information at the end of fetches; in particular
some details about the delta execution (what opcodes etc.), but
this is a first step: we log things like the transferred data
as well as whether or not GPG was enabled, etc.

One awkward thing about this is how we map the fetcher options like
`tls-ca-path` back out into an enum for the code to log. But eh, hard to fix
without a bigger refactoring.

Closes: #1032
Approved by: jlebon
src/libostree/ostree-repo-pull.c